package com.straw.hat.jdk.jvm.classes;


import net.sf.cglib.proxy.Enhancer;
import net.sf.cglib.proxy.MethodInterceptor;

public class ClassTest {

        /*1*/
    /**
     * @param args
     */
    public static void main(String[] args) {
        int i = 0;
//        Thread.sleep(30*1000);
        while (true) {
            System.out.println(i++);
            Enhancer enhancer = new Enhancer();
            enhancer.setSuperclass(ObjTest.class);
            enhancer.setUseCache(false);
            enhancer.setCallback((MethodInterceptor) (o, method, objects, methodProxy) -> methodProxy.invokeSuper(o, args));
            Object o = enhancer.create();
        }
    }






}
